﻿namespace Morus
{
    using System.Diagnostics;
    using Morus.Infrastructure;

    public static class UnitOfWork
    {
        [DebuggerStepThrough]
        public static IUnitOfWork Begin()
        {
            return IoC.Resolve<IUnitOfWork>();
        }

        [DebuggerStepThrough]
        public static IUnitOfWork Begin(string name)
        {
            return IoC.Resolve<IUnitOfWork>(name);
        }
    }
}
